from datetime import datetime


def get_current_time():
    now = datetime.now()
    # 将时间格式化为字符串
    return now.strftime("%Y-%m-%d %H:%M:%S")